package com.authine.hermes.app.launcher;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 服务的启动入口，只做组装
 *
 * @author carter
 */
@EnableSwagger2Doc
//如果需要启用feign调用别的内部微服务接口，请解除下面一样的注解
@EnableFeignClients(basePackages = {
        "com.authine"
})
@SpringBootApplication(scanBasePackages = {
        "com.authine",
        "com.alibaba.cola"
})
@EnableAsync
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}

